<template>
  <div class="header-wrapper">
    <div id="header-left">
      <span>饿了么后台管理系统</span>
    </div>
    <div id="header-mid">
    </div>
    <div id="header-right">
      <el-dropdown>
        <span style="cursor: pointer;color: rgba(25, 25, 25, 1);">
          皮肤<i class="el-icon-arrow-down el-icon--right"></i>
        </span>
        <template #dropdown>
          <el-dropdown-menu>
            <el-dropdown-item>渐变蓝（默认）</el-dropdown-item>
            <el-dropdown-item>黑</el-dropdown-item>
            <el-dropdown-item>白</el-dropdown-item>
            <!--            <el-dropdown-item disabled>Action 4</el-dropdown-item>-->
            <!--            <el-dropdown-item divided>Action 5</el-dropdown-item>-->
          </el-dropdown-menu>
        </template>
      </el-dropdown>
      <div>
        <el-avatar shape="square" size="30" style="vertical-align: middle; margin: 5px"
                   src="https://cube.elemecdn.com/9/c2/f0ee8a3c7c9638a54940382568c9dpng.png"></el-avatar>
        <el-dropdown>
          <span style="cursor: pointer;color: rgba(25, 25, 25, 1);">
            admin<i class="el-icon-arrow-down el-icon--right"></i>
          </span>
          <template #dropdown>
            <el-dropdown-menu>
              <el-dropdown-item @click="msg">我的消息</el-dropdown-item>
              <el-dropdown-item @click="setting">设置</el-dropdown-item>
              <el-dropdown-item @click="logOut">退出登录</el-dropdown-item>
            </el-dropdown-menu>
          </template>
        </el-dropdown>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  name: 'Header',
}
</script>

<style scoped>
header > div.header-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100%;
  color: rgba(5, 5, 5, 1);
}

header > div.header-wrapper > div#header-left {
  font-size: 3vh;
  font-weight: 700;
  font-family: "Microsoft YaHei UI";
}

header > div.header-wrapper > div#header-right {
  font-size: 2vh;
  font-weight: 700;
  font-family: "Microsoft YaHei UI";
  width: 300px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
}

</style>